<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>广告管理</title>
<@fm.header />
<style>
.provinceClass label {
	font-size: 12px;
	float:left;
	margin:2px;
	width:80px;
	height:20px;
}
</style>

    <script type="text/javascript" src="/resources/js/taskvertimer/list.js">

    </script>
</head>
<body>
<div class="easyui-layout" style="text-align: center; height: 270px;" fit="true">
	<div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
	<form id="ff" method="post" enctype="multipart/form-data">
	<input type="hidden" name="isExec"   value=${config.isExec}></input>
	<input type="hidden" name="id"   value=${config.id}></input>
        <table>
            <tr>
                <td><label for="sysver">系统版本</label></td>
                <td colspan="3"><input id="sysVerId" class="easyui-combogrid" style="width: 400px;height: 22px;" name="sysver" data-options="
						panelHeight: '150',
						multiple:true,
						multiline:true,
						url:'/simulator/taskVerList?taskverId=${config.id}',
						method:'get',
						idField: 'ver',
            			textField: 'ver',
            			required:true,
						columns: [[
							{field:'ver',title:'版本号',width:30},
			            ]],
            			fitColumns: true
						"/>
                </td>
            </tr>
            <tr>
                <td><label for="taskType">任务类型</label></td>
                <td>
                    <select class="easyui-combobox" name="taskType" panelHeight="auto" style="width:155px" >
                        <option value="1" <#if config.taskType?exists && config.taskType == 1>selected</#if>>新增</option>
                        <option value="2" <#if config.taskType?exists && config.taskType == 2>selected</#if>>留存</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label for="isOpen">是否启用</label></td>
                <td>
                    <select class="easyui-combobox" name="isOpen" panelHeight="auto" style="width:155px" >
                        <option value="1" <#if config.isOpen?exists && config.isOpen == 1>selected</#if>>启用</option>
                        <option value="0" <#if config.isOpen?exists && config.isOpen == 0>selected</#if>>作废</option>
                    </select>
                </td>

            </tr>

            <tr>
                <td><label for="execTime">执行时间</label></td>
                <td><input type="text" class="easyui-datetimebox" id="execTime" value="${config.execTime}" name="execTime" data-options="required:true"></input></td>
            </tr>

        </table>
	</form>
	</div>
	<div region="south" border="false" style="text-align: center; padding: 5px 5px 5px 0;">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:subEdit()">提交</a>
	</div>
</div>

<script>

    $(function() {
        $('#sysVerId').combogrid('setValues', [<#list sysVerList as i>'${i.sysver}',</#list>]);
    });

</script>
</body>
</html>